import request from "@/utils/request";

// 获取在保项目列表
export function getUnderProjectListApi(query, data) {
  return request({
    url: "/system/proTask/selectProjectGuaranteeList",
    method: "post",
    params: query,
    data,
  });
}

// 获取过保项目列表
export function getOverProjectListApi(query, data) {
  return request({
    url: "/system/proTask/selectProjectGoGuaranteeList",
    method: "post",
    params: query,
    data,
  });
}

// 新增项目保障时间
export function addSafeguardApi(data) {
  return request({
    url: "/system/guarantee/add",
    method: "post",
    data,
  });
}

// 编辑项目保障时间
export function editSafeguardApi(data) {
  return request({
    url: "/system/guarantee/edit",
    method: "post",
    data,
  });
}



// 在保项目详情
export function underProjecDetailApi(projectId) {
  return request({
    url: `/system/proTask/selectProjectGuaranteeById`,
    method: "get",
    params: { projectId },
  });
}

// 过保项目详情
export function overProjecDetailApi(projectGuaranteeId) {
  return request({
    url: `/system/guarantee/selectGuaranteeRecordInfo`,
    method: "get",
    params: { projectGuaranteeId },
  });
}




